Skip to content

chore: move to Node 24 LTS and refresh dev dependencies - #47

Merged
umsungjun merged 3 commits into
mainfrom
chore/node-24-toolchain
Oct 30, 2026
Merged

umsungjun merged 3 commits into
mainfrom
chore/node-24-toolchain

Conversation

@umsungjun

Copy link
Copy Markdown
Owner

Changes

  • Node 24 LTS: .nvmrc goes from 20 to 24, and every CI job reads node-version-file: .nvmrc instead of a hardcoded 20.x. Node 20 reached end of life in April 2026 and does not get the 2026-10-21 security release (Brotli decoder RCE, CVE-2026-111497, and nine others).
  • Dev dependency refresh: pnpm update in the root and examples/basic, staying within the existing semver ranges (no major bumps). @types/node moves to ^24 to match the runtime.
  • engines.node (>=18) is unchanged. It describes what consumers need, and the published package only ships dist with no runtime dependencies.

Audit

Lockfile Before After
root 13 high, 11 moderate, 3 low 0
examples/basic 3 high, 3 moderate, 1 low 0

None of these reached consumers, since the package has no runtime dependencies. They affected local development and CI only.

Verification

Run locally on Node 24.22.2 with pnpm 10.5.2: lint, typecheck, format:check, test, build, size, and arethetypeswrong all pass, and both bundles keep the 'use client' banner. The React 17/18 compat matrix and Playwright e2e run in CI on this PR.

Dependabot

This covers what #34 (dev-dependencies group), #43 and #26 (examples/basic) were trying to do, so Dependabot should close or rebase them. The major bumps (#44 Next 16, #45 Vite 8, #37 upload-artifact, #29 codecov, #13 pnpm/action-setup) are left for separate review. The website security fix is in #46.

- Node 20 reached end of life in April 2026 and is not covered by the 2026-10-21 security release (including the Brotli decoder RCE, CVE-2026-111497).

- CI now reads the version from .nvmrc, so local and CI stay on the same major.
- Resolves every pnpm audit finding in the root and examples/basic (vitest, vite, rollup, minimatch, brace-expansion, fast-uri, nanoid and others). No major version changes.

- @types/node moves to ^24 to match the CI runtime.
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-device-check Ready Ready Preview Oct 30, 2026 1:50am UTC

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

An unresolved finding remains: bumping .nvmrc to Node 24 leaves the .nvmrc-referencing Node 20.x guidance in CLAUDE.md contradictory and still needs updating.

1 open issue
1 file not reviewed
  • examples/basic/pnpm-lock.yaml: Generated file
What changed in this PR

This maintenance PR migrates the project's tooling baseline from Node 20 (now EOL) to Node 24 LTS and refreshes dev/example dependencies within their existing semver ranges, closing out the audit findings that several Dependabot PRs were targeting. It fits the repo's "zero runtime dependency" posture: the changes affect only local development and CI, not the published package. I verified that both the root pnpm-lock.yaml (not in the shown diff but present and consistent on the branch) and examples/basic/pnpm-lock.yaml match their manifests, that all four CI jobs now resolve Node from .nvmrc, and that updated engine constraints (e.g. vite >=22.0.0) permit Node 24.

Changes:

  • Bump .nvmrc 20 → 24 and switch all CI jobs from a hardcoded node-version: '20.x' to node-version-file: .nvmrc.
  • Refresh root dev dependencies (including @types/node 22 → 24 to match the runtime) with lockfile kept in sync.
  • Refresh examples/basic React/Vite tooling and its lockfile.

Note: CLAUDE.md line 100 still documents "Node 20.x", which this .nvmrc change makes stale (flagged inline).

File Description
.nvmrc Pins Node 24 LTS (the single source read by CI and local setup).
.github/​workflows/​ci.yml All four jobs now read the Node version from .nvmrc instead of hardcoding 20.x.
package.json Root dev-dependency refresh within semver ranges; @types/node moved to ^24 to match the runtime.
examples/​basic/​package.json React, @types/*, @vitejs/plugin-react, and Vite bumped to current patch/minor releases.
examples/​basic/​pnpm-lock.yaml Lockfile regenerated to match the example's refreshed manifest (and transitive bumps).

Review effort: Balanced

Comment thread .nvmrc
@@ -1 +1 @@
20 No newline at end of file
24

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 050618e. CLAUDE.md now says Node 24.x, matching .nvmrc. That line was the only Node 20 reference left in the tracked docs.

- .nvmrc now pins 24, so the contributor note should match.
@umsungjun
umsungjun merged commit 6d7dc83 into main Oct 30, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 050618e1 Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants